<div class="layuimini-container u-p-t-50">
    <style>
        .layui-form-label {
            width: auto
        }

        .success-info {
            background-color: #16baaa;
            color: #fff;
            text-align: center;
            font-size: 14px;
            border-radius: 2px;
            padding: 10px;
            margin-bottom: 20px;
        }
    </style>
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="update_time" value="{$row.update_time|default=''}">
        <input type="hidden" name="type" value="{$row.type|default=''}">
        <div class="operate-bar">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>
                {:lang('common.btn_submit')}
            </button>
        </div>
        <div class="success-info hide">{:lang('amass.addSuccessInfo')}</div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('amass.travel_name')}</label>
            <div class="layui-input-inline">
                <input type="text" name="travel_name" class="layui-input" lay-verify="required" maxlength="100"
                       placeholder="{:lang('common.input')}{:lang('amass.travel_name')}"
                       value="{$row.travel_name|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('amass.username')}</label>
            <div class="layui-input-inline">
                <input type="text" name="username" class="layui-input" lay-verify="required" maxlength="100"
                       placeholder="{:lang('common.input')}{:lang('amass.username')}"
                       value="{$row.username|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('amass.mobile')}</label>
            <div class="layui-input-inline">
                <input type="text" name="mobile" class="layui-input" lay-verify="required" maxlength="100"
                       placeholder="{:lang('common.input')}{:lang('amass.mobile')}"
                       value="{$row.mobile|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('amass.position')}</label>
            <div class="layui-input-inline">
                <input type="text" name="position" class="layui-input" maxlength="100"
                       placeholder="{:lang('common.input')}{:lang('amass.position')}"
                       value="{$row.position|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">{:lang('amass.person_num')}</label>
            <div class="layui-input-inline">
                <input type="text" name="person_num" class="layui-input" lay-verify="required" maxlength="10"
                       placeholder="{:lang('common.input')}{:lang('amass.person_num')}"
                       value="{$row.person_num|default=''}">
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['myCommon'], function () {
        var $ = layui.jquery
            , myCommon = layui.myCommon;
        myCommon.listen(null, function (res) {
            myCommon.msg.success(res.msg, function () {
                $('.operate-bar').addClass('hide');
                $('.success-info').removeClass('hide');
            });
        });
    });
</script>
